package com.jsmtr.rms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "Base_Job")
public class BaseJob {

    @Id
    @Column(nullable = false)
    private Integer id; // 主键

    @Column(nullable = false, length = 50)
    private String code; // 岗位编码

    @Column(nullable = false, length = 100)
    private String name; // 岗位名称

    @Column(nullable = false, length = 50)
    private String jobseries; // 岗位序列

    @Column(nullable = false, length = 50)
    private String jobrank; // 岗位等级

    @Column(nullable = false)
    private Integer pcount; // 编制人数

    @Column(nullable = false)
    private Integer rcount; // 在岗人数

    @Column(nullable = false, length = 50)
    private String deptcode; // 部门编码

    @Column(nullable = false)
    private Date editdate; //更新时间

    @Column(nullable = false)
    private String type; //岗位类型

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJobseries() {
        return jobseries;
    }

    public void setJobseries(String jobseries) {
        this.jobseries = jobseries;
    }

    public String getJobrank() {
        return jobrank;
    }

    public void setJobrank(String jobrank) {
        this.jobrank = jobrank;
    }

    public Integer getPcount() {
        return pcount;
    }

    public void setPcount(Integer pcount) {
        this.pcount = pcount;
    }

    public Integer getRcount() {
        return rcount;
    }

    public void setRcount(Integer rcount) {
        this.rcount = rcount;
    }

    public String getDeptcode() {
        return deptcode;
    }

    public void setDeptcode(String deptcode) {
        this.deptcode = deptcode;
    }

    public Date getEditdate() {
        return editdate;
    }

    public void setEditdate(Date editdate) {
        this.editdate = editdate;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}